---@class replica_components
---@field surtr_laevatain_fn replica_surtr_laevatain_fn

---@class replica_surtr_laevatain_fn
---@field goldenaxe netvar
---@field goldenpickaxe netvar
---@field ash netvar
local surtr_laevatain_fn = Class(function(self, inst)
    self.inst = inst
    self.goldenaxe = net_bool(inst.GUID, "surtr_laevatain_fn.goldenaxe")
    self.goldenpickaxe = net_bool(inst.GUID, "surtr_laevatain_fn.goldenpickaxe")
    self.ash = net_smallbyte(inst.GUID, "surtr_laevatain_fn.ash")
end)


function surtr_laevatain_fn:Setgoldenaxe(num)
    self.goldenaxe:set(num)
end

function surtr_laevatain_fn:Setgoldenpickaxe(num)
    self.goldenpickaxe:set(num)
end

function surtr_laevatain_fn:Setash(num)
    self.ash:set(num)
end



function surtr_laevatain_fn:IsMax_goldenaxe()
    return self.goldenaxe:value()
end

function surtr_laevatain_fn:IsMax_goldenpickaxe()
    return self.goldenpickaxe:value()
end

function surtr_laevatain_fn:IsMax_ash()
    return self.ash:value() >= TUNING.MOD_SURTR.LAEVATAIN.ACCEPT.surtr_ash.max_accept
end

return surtr_laevatain_fn